package com.framework.loippi.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 轮播表
 *
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_CAROUSEL")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"handler", "hibernateLazyInitializer"})
@ApiModel(value = "轮播表", description = "轮播表")
public class TCarousel implements GenericEntity {

    private static final long serialVersionUID = 5081846432919091193L;

    /**
     *
     */
    @Column(id = true, name = "id", updatable = false)
    @ApiModelProperty(value = "")
    private Long id;


    /**
     * 商品ID
     */
    @Column(name = "goodsId")
    @ApiModelProperty(value = "商品ID")
    private Long goodsId;

    /**
     * 是否删除(0否，1是)
     */
    @Column(name = "is_delete")
    @ApiModelProperty(value = "是否删除(0否，1是)")
    private Integer isDelete;

    /**
     * 图片名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "图片名称")
    private String name;

    /**
     * 图片链接
     */
    @Column(name = "img")
    @ApiModelProperty(value = "图片链接")
    private String img;

    /**
     * 外部链接
     */
    @Column(name = "out_url")
    @ApiModelProperty(value = "外部链接")
    private String outUrl;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;

    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;

}
